package com.freecloud.framework.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: maomao
 * @Date: 2019-08-29 08:46
 */
@Configuration
@EnableAutoConfiguration
@Data
public class EmailConfig {

    @Value("${freecloud.email.host:smtp.163.com}")
    private String host;

    @Value("${freecloud.email.port:25}")
    private String port;

    @Value("${freecloud.email.username:123456@163.com}")
    private String username;

    @Value("${freecloud.email.password:123456}")
    private String password;

    @Value("${freecloud.email.sendFrom:123456@163.com}")
    private String sendFrom;

    @Value("${freecloud.email.sendNick:<Message>}")
    private String sendNick;
}
